<?php


namespace App\Models\CacheModel;


use App\Models\Api\BaseCache;

class ZlTarotText extends BaseCache
{
    protected $table = 'wechat_backup_07_18_14_43_00.zl_tarot_text';

    protected $cacheModel = 'divination.tarot_text';

    /**
     * @param $ids
     * @param $type
     * @param $sortType
     * @return array|false|string
     */
    public function getInfoByIdsInData($ids, $type, $sortType)
    {
        try
        {
            $data = $this->whereIn('id', $ids)->column('card_id,type,location,direction,text', 'id');
        }
        catch (\Exception $e)
        {
            return [];
        }

        return $data;
    }
}
